package com.soft.javase.day12.bank;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/5/19
 */
public class Test {
    public static void main(String[] args) {

        Account account = new Account("建行", 10000.0);

        DepositThread deposit = new DepositThread(account);
        WithdrawThread withdraw = new WithdrawThread(account);

        new Thread(deposit, "粑粑").start();
        new Thread(deposit, "麻麻").start();
        new Thread(withdraw, "哥哥").start();
        new Thread(withdraw, "妹妹").start();
    }
}
